import {get} from '@/utils/request';

export const getSingleTypeList = () => {
  return get('/api/erp/erpCategory/list', {
    bizType: 1,
  });
};

export const getTreeTypeList = (rootId: string) => {
  return get('/api/erp/erpCategoryTree/childList', {
    pid: rootId,
    bizType: 1,
  });
};
